package com.znsd.entitys;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties("handler")
public class Users implements Serializable {

	/**
	 * @Fields serialVersionUID : TODO(搴忓垪鍖杋d)
	 */
	private static final long serialVersionUID = 1L;
	
	private Integer user_id; // int not null auto_increment comment '鐢ㄦ埛id',
	private String user_username; // varchar(30) comment '鐢ㄦ埛鍚�',
	private String user_password; // varchar(30) comment '鐢ㄦ埛瀵嗙爜',
	private Integer user_sex; // int comment '鎬у埆:0濂筹紝1鐢�',
	private Integer user_age; // int comment '骞撮緞',
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date user_birthday; // datetime comment '鐢熸棩',
	private String user_phone; // varchar(30) comment '鎵嬫満鍙�',
	private String user_mail; // varchar(30) comment '鐢ㄦ埛閭',
	private String user_idCard; // varchar(30) comment '韬唤璇�',
	private String user_nation; // varchar(30) comment '鍚嶆棌',
	private String user_native; // varchar(30) comment '绫嶈疮',
	private String user_status; // varchar(30) comment '鏀挎不闈㈣矊',
	private Integer user_married; // int comment '0鏈1宸插',
	private String user_education; // varchar(30) comment '鏈�楂樺鍘�',
	private String user_mode; // varchar(30) comment '鎷涚敓鏂瑰紡',
	private Integer specialty_id; // int comment '涓撲笟id',
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date graduate_time; // DATETIME comment '姣曚笟鏃堕棿',
	private String user_home; // varchar(100) comment '瀹跺涵浣忓潃',
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date user_lastlogin; // datetime comment '鏈�鍚庝竴娆＄櫥褰曟椂闂�',
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date user_createtime; // datetime comment '鍒涘缓鐢ㄦ埛鏃堕棿',
	private Integer user_state; // user_state鐢ㄦ埛鐘舵��0鍚敤1绂佺敤2鍒犻櫎
	private Integer classId;
	private RoleInfo role;
	private String user_name;
	private ClassInfo classInfo;
	private ExamPlan examplan;
	private ExamHistoryInfo examhistoryinfo;

	public RoleInfo getRole() {
		return role;
	}

	public void setRole(RoleInfo role) {
		this.role = role;
	}

	public String getUser_name() {
		return user_name;
	}

	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}

	public Integer getUser_state() {
		return user_state;
	}

	public void setUser_state(Integer user_state) {
		this.user_state = user_state;
	}

	public Integer getUser_id() {
		return user_id;
	}

	public void setUser_id(Integer user_id) {
		this.user_id = user_id;
	}

	public String getUser_username() {
		return user_username;
	}

	public void setUser_username(String user_username) {
		this.user_username = user_username;
	}

	public String getUser_password() {
		return user_password;
	}

	public void setUser_password(String user_password) {
		this.user_password = user_password;
	}

	public Integer getUser_sex() {
		return user_sex;
	}

	public void setUser_sex(Integer user_sex) {
		this.user_sex = user_sex;
	}

	public Integer getUser_age() {
		return user_age;
	}

	public void setUser_age(Integer user_age) {
		this.user_age = user_age;
	}

	public Date getUser_birthday() {
		return user_birthday;
	}

	public void setUser_birthday(Date user_birthday) {
		this.user_birthday = user_birthday;
	}

	public String getUser_phone() {
		return user_phone;
	}

	public void setUser_phone(String user_phone) {
		this.user_phone = user_phone;
	}

	public String getUser_mail() {
		return user_mail;
	}

	public void setUser_mail(String user_mail) {
		this.user_mail = user_mail;
	}

	public String getUser_idCard() {
		return user_idCard;
	}

	public void setUser_idCard(String user_idCard) {
		this.user_idCard = user_idCard;
	}

	public String getUser_nation() {
		return user_nation;
	}

	public void setUser_nation(String user_nation) {
		this.user_nation = user_nation;
	}

	public String getUser_native() {
		return user_native;
	}

	public void setUser_native(String user_native) {
		this.user_native = user_native;
	}

	public String getUser_status() {
		return user_status;
	}

	public void setUser_status(String user_status) {
		this.user_status = user_status;
	}

	public Integer getUser_married() {
		return user_married;
	}

	public void setUser_married(Integer user_married) {
		this.user_married = user_married;
	}

	public String getUser_education() {
		return user_education;
	}

	public void setUser_education(String user_education) {
		this.user_education = user_education;
	}

	public String getUser_mode() {
		return user_mode;
	}

	public void setUser_mode(String user_mode) {
		this.user_mode = user_mode;
	}

	public Integer getSpecialty_id() {
		return specialty_id;
	}

	public void setSpecialty_id(Integer specialty_id) {
		this.specialty_id = specialty_id;
	}

	public Date getGraduate_time() {
		return graduate_time;
	}

	public void setGraduate_time(Date graduate_time) {
		this.graduate_time = graduate_time;
	}

	public String getUser_home() {
		return user_home;
	}

	public void setUser_home(String user_home) {
		this.user_home = user_home;
	}

	public Date getUser_lastlogin() {
		return user_lastlogin;
	}

	public void setUser_lastlogin(Date user_lastlogin) {
		this.user_lastlogin = user_lastlogin;
	}

	public Date getUser_createtime() {
		return user_createtime;
	}

	public void setUser_createtime(Date user_createtime) {
		this.user_createtime = user_createtime;
	}

	public ClassInfo getClassInfo() {
		return classInfo;
	}

	public void setClassInfo(ClassInfo classInfo) {
		this.classInfo = classInfo;
	}
	

	public Integer getClassId() {
		return classId;
	}

	public void setClassId(Integer classId) {
		this.classId = classId;
	}

	public ExamPlan getExamplan() {
		return examplan;
	}

	public void setExamplan(ExamPlan examplan) {
		this.examplan = examplan;
	}

	public ExamHistoryInfo getExamhistoryinfo() {
		return examhistoryinfo;
	}

	public void setExamhistoryinfo(ExamHistoryInfo examhistoryinfo) {
		this.examhistoryinfo = examhistoryinfo;
	}

	@Override
	public String toString() {
		return "Users [user_id=" + user_id + ", user_username=" + user_username + ", user_password=" + user_password
				+ ", user_sex=" + user_sex + ", user_age=" + user_age + ", user_birthday=" + user_birthday
				+ ", user_phone=" + user_phone + ", user_mail=" + user_mail + ", user_idCard=" + user_idCard
				+ ", user_nation=" + user_nation + ", user_native=" + user_native + ", user_status=" + user_status
				+ ", user_married=" + user_married + ", user_education=" + user_education + ", user_mode=" + user_mode
				+ ", specialty_id=" + specialty_id + ", graduate_time=" + graduate_time + ", user_home=" + user_home
				+ ", user_lastlogin=" + user_lastlogin + ", user_createtime=" + user_createtime + ", user_state="
				+ user_state + ", classId=" + classId + ", role=" + role + ", user_name=" + user_name + ", classInfo="
				+ classInfo + ", examplan=" + examplan + ", examhistoryinfo=" + examhistoryinfo + "]";
	}
}
